Programming in Icon ; Part II — Programming with Co - Expressions
نویسنده
چکیده
1. Introduction This report is the second in a series that deals with various aspects of programming in Icon. The first report [1] dealt with generators. Co-expressions are the topic of this second report for two reasons: (1) they derive their utility from generators, and (2) they seem to present more problems to programmers than other features of Icon. The first two parts of this report treat the basic aspects of co-expressions and their common uses. The third part describes the use of co-expressions to provide programmer-defined control operations. More advanced uses of co-expressions are covered in the final part. Appendices contain examples illustrating programming techniques and exercises for interested readers. This report assumes a familiarity with Version 6 of Icon [2], although co-expressions themselves are described in detail here. A good understanding of generators [1] is a prerequisite for the material that follows. Some features of co-expressions that are described in this report were added in Version 6.4 of Icon. Such features are noted.
منابع مشابه
Co-Expressions in Icon
1. Introduction Icon is a high-level programming language that features facilities for string and list processing. In addition to these facilities, it has expressions, called generators, that are capable of producing sequences of results. A goal-directed evaluation mechanism automatically produces the results of generators in an attempt to produce 'successful' computations. Generators and goal-...
متن کاملAn Overview of the Icon Programming Language ; Version 9
Icon is a high-level programming language with extensive facilities for processing strings and structures. Icon has several novel features, including expressions that may produce sequences of results, goal-directed evaluation that automatically searches for a successful result, and string scanning that allows operations on strings to be formulated at a high conceptual level. Icon also provides ...
متن کاملDAMAGE AND PLASTICITY CONSTANTS OF CONVENTIONAL AND HIGH-STRENGTH CONCRETE PART II: STATISTICAL EQUATION DEVELOPMENT USING GENETIC PROGRAMMING
Several researchers have proved that the constitutive models of concrete based on combination of continuum damage and plasticity theories are able to reproduce the major aspects of concrete behavior. A problem of such damage-plasticity models is associated with the material constants which are needed to be determined before using the model. These constants are in fact the connectors of constitu...
متن کاملProgramming in Icon; Part I — Programming with Generators Programming in Icon; Part I — Programming with Generators
1. Introduction The Icon programming language [1] contains a number of features that are unusual and that are not found in most other programming languages. As a result, Icon encourages programming techniques that are distinctly different from those that are possible in more conventional programming languages. Not all of these techniques are obvious. Indeed, experience with other programming la...
متن کاملIcobj Programming
A simple and fully graphical programming method is presented, using a powerful means to combine behaviors. This programming is based on the notion of an icobj which has a behavioral aspect ( object part), a graphical aspect ( icon part), with an animation aspect. Icobj programming provides parallelism, broadcast event communication and migration through the network. An experimental system based...
متن کامل